package com.zmc.lostfound.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author ZMC
 * @description Elasticsearch全文检索服务
 */
@ComponentScan(value = {"com.zmc.lostfound.search", "com.zmc.lostfound.common"}, excludeFilters = {
        @ComponentScan.Filter(type = FilterType.REGEX, pattern = {
                "com.zmc.lostfound.common.config.MyMetaObjectHandler", "com.zmc.lostfound.common.config.MybatisPlusConfig"})
})
@EnableFeignClients(basePackages = {"com.zmc.lostfound.common.feign"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class LostFoundSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(LostFoundSearchApplication.class, args);
    }

}
